package leaf.cloud.common.massage.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SendMsgText
 * @Description 小程序类型消息
 * @Author YeZiHao
 * @Date 2022/7/12 11:59
 **/
@Getter
@Setter
public class MiniCodeMsg extends MassageMain {

    @JSONField(name = "msgtype")
    private String msgType = "miniprogram_notice";
    @JSONField(name = "miniprogram_notice")
    public MiniProgram miniProgramNotice;

    @Data
    public static class MiniProgram {
        private String appid = "wxcb6bb6000333e66f";
        private String page = "/pages/login/index";
        private String title;
        private String description;
        @JSONField(name = "emphasis_first_item")
        private boolean emphasisFirstItem;
        @JSONField(name = "content_item")
        private List<Map<String, String>> contentItem;
    }
}
